<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/cloudmgr.css">
<script type="text/javascript" src="<%=basePath%>js/easyui/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>js/public.js"></script>
<script type="text/javascript" src="<%=basePath%>pages/account/account.js"></script>
<style type="text/css">
</style>
</head>
<body scroll="yes" style="height:545px">
	<div id="tb" style="padding:2px 5px;">
		昵称: <input id="search_nickName" class="easyui-textbox" style="width:130px;"/>
		手机号: <input id="search_phoneNum" class="easyui-textbox" style="width:130px;"/>
		<a class="easyui-linkbutton search-button" id="search">查询</a> 
		<a class="easyui-linkbutton operate-button" style="width:80px" id="btn_speak">禁言 | 恢复</a> 
		<a class="easyui-linkbutton operate-button" id="btn_repwd">重置密码</a> 
		<a class="easyui-linkbutton operate-button" id="btn_feather">增加羽毛</a>
		<!-- 
		<a class="easyui-linkbutton operate-button" id="delete">删除</a>
		<a class="easyui-linkbutton operate-button" id="modify">修改</a>
		<a class="easyui-linkbutton operate-button" id="add">增加</a>
		 -->
	</div>
	<table id="datagrid" class="easyui-datagrid"
		data-options="rownumbers : true,title:'',
			singleSelect : false,
			toolbar : '#tb',
			loadMsg : '数据加载中,请稍后...',
			url : '<%=basePath%>account/queryAccountListWeb',
			fit:true,
			fitColumns:true,
			pagination:true,
			pageSize: 100,
			pageList : [100, 200],
			method : 'post'">
		<thead>
		<tr>
			<th data-options="field:'accountID',width:150">用户编码</th>
			<th data-options="field:'nickName',width:120">昵称</th>
			<th data-options="field:'status',formatter:formatStatus,width:80">状态</th>
			<th data-options="field:'featherNum',width:80">积分</th>
			<th data-options="field:'phoneNum',width:120">手机号</th>
			<th data-options="field:'wx',width:120">微信号</th>
			<th data-options="field:'qq',width:120">QQ号</th>
			<th data-options="field:'registerTime',width:120">注册日期</th>
		</tr>
		</thead>
	</table>
	
	<div id="edit-window">
		<div style="padding: 10px 60px 20px 60px;">
			<form id="ff" method="post">
				<table cellpadding="5">
					<tr>
						<td>昵称:</td>
							<td><input class="easyui-textbox" style="width:190px"
							id="edit_nickName" name="nickName" ></input></td>
					</tr>
					<tr>
						<td>手机号:</td>
						<td><input class="easyui-textbox" style="width:190px" data-options="readonly:true" id="edit_phoneNum" name="phoneNum" ></input></td>
					</tr>
					<tr>
						<td>增加积分:</td>
						<td><input class="easyui-textbox" style="width:190px" data-options="prompt:'请输入需要增加的积分数量',required:true" id="edit_featherNum" name="featherNum" ></input></td>
					</tr>
					</table>
				<div style="text-align:center;padding:5px;">
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="submitForm">提交</a> 
					<a href="javascript:void(0)" class="easyui-linkbutton form-button" id="clearForm">清除</a>
				</div>
			</form>
		</div>
	</div>
</body>
<script>
function formatStatus(val,row){
    if (val == '1'){
        return '<span style="color:red;">禁言</span>';
    } else{
        return '<span style="color:green;">正常</span>';
    }
}
</script>